Current Location: Home> Function Categories> timezone_name_get

timezone_name_get

Alias ​​for DateTimeZone::getName - Returns the time zone name
Name:timezone_name_get
Category:Date and time
Programming Language:php
One-line Description:Returns the name of the time zone.

Definition and usage

timezone_name_get() returns the name of the time zone.

Example

Returns the name of the time zone:

 <?php
$tz = timezone_open ( "America/New_York" ) ;
echo timezone_name_get ( $tz ) ;
?>

Try it yourself

grammar

 timezone_name_get ( object ) ;
parameter describe
object Required. Specifies the DateTimeZone object.
Similar Functions
Popular Articles